$.ajax({
    url:"allActionServlet",
    dataType:"json",
    type:"post",
    success:function (actions){
        var name=actions[0].name;
        var path=actions[0].path;
        var type=actions[0].type;
        var label=actions[0].label;
        var obtain=actions[0].obtain;
        var money=actions[0].money;
        var describe=actions[0].describe;
        var story=actions[0].story;
        //效果描述
        $("#content").html("<p>"+describe+"</p>")
        // var $a="<p>"+describe+"</p>";
        // $("#content").append($a);
        //卡牌故事
        var $b="<p>"+story+"</p>";
        $("#story").append($b);
        //图片
        var $c="<img src=\"image/"+path+"\" data-preview=\"true\" class=\"main-card-img\">";
        $("#imgAction").prepend($c);
        //名称
        var $d="<p class=\"name\">"+name+"</p>";
        $("#info").prepend($d);
        //类型
        var $e="<span class=\"\">"+type+"</span>";
        $("#type").append($e);
        //标签
        var $f="<span class=\"\">"+label+"</span>";
        $("#label").append($f);
        //获取
        var $g="<span class=\"\">"+obtain+"</span>";
        $("#obtain").append($g);
        //花费
        var $h="<span class=\"\">"+money+"</span>";
        $("#money").append($h);

    }
});




